package com.example.snashuitraverl.demos.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.snashuitraverl.demos.domain.Ads;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.snashuitraverl.demos.domain.DTO.AdsDto;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 32551
* @description 针对表【ads(广告)】的数据库操作Service
* @createDate 2024-06-23 18:59:56
*/
public interface AdsService extends IService<Ads> {

    /**
     *添加广告
     */
    int addAds(Ads ads, HttpServletRequest request);

    /**
     * 查询所有广告
     */
    List<Ads> selectAll(HttpServletRequest request);
    /**
     * 按照序号查询广告
     */
    Ads selectByID(int ID,HttpServletRequest request);
    /**
     * 更新广告按照Id
     */
    int updateID(Ads ads,HttpServletRequest request);

    /**
     * 管理读分页查询广告
     */
    Page<Ads> selectPage(AdsDto adsDto,HttpServletRequest request);
}
